package com.example.Microblogging.services;

import com.example.Microblogging.dao.TaskRepository;
import com.example.Microblogging.dto.TaskUserAccount;
import com.example.Microblogging.entity.Task;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskService {
    @Autowired
    TaskRepository taskRepository;

    public List<TaskUserAccount> taskUserAccounts() {
        return taskRepository.taskUserAccounts();
    }

    public Task save(Task task) {
        return taskRepository.save(task);
    }
}
